package com.terrier.ui.core
{

    /**
     * 容器基类
     * @author Jarvis.weng
     */
    public class WxContainer extends WxComponent
    {
        /**
         * @private
         */
        protected var _contentPane:WxContentPane;

        /**
         * 构造函数
         */
        public function WxContainer()
        {
			super();
        }
		
		override protected function initialize():void
		{
			super.initialize();
			_concernChildLayout = true;
			_contentPane = new WxContentPane();
			addChild(_contentPane);
		}

        /**
         * 容器的内容面板. 请将子对象加入到这个面板中去.
         * @example 下面是范例代码:
         * <listing version="3.0">
         * var container:WxContainer = new WxContainer();
         * var child:Sprite = new Sprite();
         * container.contentPane.addChild(child);
         * </listing>
         * @return
         */
        public function get contentPane():WxComponent
        {
            return _contentPane;
        }
    }
}
